<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
	<%
		Object msg = request.getAttribute("message");
		if (msg != null) {
	%>
	<br />
	<font color="red"><%=msg%></font>
	<br />
	<%
		}
	%>
	<h1>添加一条新的customer信息</h1>
	<!--此处addCustomer.do依赖于CustomerServlet中的add方法名  -->
	<form action="addCustomer.do" method="post">
		<table>
			<tr>
				<td>CustomerName:</td>
				<td><input type="text" name="name"
					value="<%=request.getParameter("name") == null ? "" : request.getParameter("name")%>" /></td>
			</tr>
			<tr>
				<td>Address:</td>
				<td><input type="text" name="address"
					value="<%=request.getParameter("address") == null ? "" : request.getParameter("address")%>" /></td>
			</tr>
			<tr>
				<td>Phone:</td>
				<td><input type="text" name="phone"
					value="<%=request.getParameter("phone") == null ? "" : request.getParameter("phone")%>" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="add" /></td>

			</tr>
		</table>
	</form>
</body>
</html>